package com.asia5b.a5mall.middleware.model.member

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable

class CouponModel: BaseModel(), MultiItemEntity {

    // 0:未使用 1:已使用 2:已过期
    var used_status=0
    //1:自营 !=1店铺
    var seller_id=0
    var coupon_id=0
    var used_status_text=""

    var seller_name=""

    //优惠额度
    var coupon_price=0.0
    //优惠要求最低额度
    var coupon_threshold_price=0.0
    var start_time=0L
    var end_time=0L
    override val itemType: Int
        get() = 1

}

/*
{
"mc_id": 127,
"coupon_id": 31,
"member_id": 2,
"used_time": null,
"create_time": 1578305159,
"order_id": null,
"order_sn": null,
"member_name": null,
"title": "10",
"coupon_price": 10,
"coupon_threshold_price": 50,
"start_time": 1578240000,
"end_time": 1580399999,
"used_status": 1,
"seller_id": 64,
"seller_name": "全广州最靓的店",
"used_status_text": "已使用"
}
 */